Skip to content

Birmingham | 26-ITP-May | Tobias Amaechina | Sprint 3 | Sprint-3/todo-list - #1327

Open
Tobias-Amaechina wants to merge 16 commits into
CodeYourFuture:mainfrom
Tobias-Amaechina:group-data-sprint-todo
Open

Birmingham | 26-ITP-May | Tobias Amaechina | Sprint 3 | Sprint-3/todo-list#1327
Tobias-Amaechina wants to merge 16 commits into
CodeYourFuture:mainfrom
Tobias-Amaechina:group-data-sprint-todo

Conversation

@Tobias-Amaechina

@Tobias-Amaechina Tobias-Amaechina commented Jul 28, 2026

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

I updated the ( Sprint-3/todo-list/index.html, script.mjs, todos.mjs, todos.test.mjs, package.json.
Main feature additions:
Tasks now have an optional deadline (data model: todos include a deadline field).
UI: a date input for new tasks and a deadline display per item showing "Due today", "X days left", or "Overdue by X days".
New “Delete completed tasks” button and handler.
New Todos.deleteCompleted(todos) function and a unit test for it.
Sample data updated to include a deadline for one sample task.
package.json: bumped jest from ^30.0.4 to ^30.4.2.
Tests: added a unit test "deleteCompleted removes all completed tasks".
wrote a test to pass the deadline feature

@Tobias-Amaechina Tobias-Amaechina added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 28, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 28, 2026
@github-actions

This comment has been minimized.

@Tobias-Amaechina Tobias-Amaechina changed the title Birmingham | 26-ITP-May | Tobias Amaechina | Sprint 3 | Sprint-todos Birmingham | 26-ITP-May | Tobias Amaechina | Sprint 3 | Sprint-3/todo-list Jul 28, 2026
@Tobias-Amaechina Tobias-Amaechina added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 28, 2026

@cjyuan cjyuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks great.

Comment on lines +17 to +20
<input type="text" id="new-task-input" placeholder="Enter a new task..." />
<input type="date" id="new-task-deadline" />
<button id="add-task-btn">Add</button>
</div>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation is off.

// Replace the old array contents
todos.length = 0;
todos.push(...newTodos);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not perform the operations on lines 45-46 in Todos.deleteCompleted()?

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants